import rtconfig
from building import *

cwd = GetCurrentDir()

# add the general drivers.
src = Split("""
board.c
drv_ili9340.c
""")

path = [cwd]

# You can select chips from the list above
group = DefineGroup('Board', src, depend = [''], CPPPATH = path)

# add CubeMx
list = os.listdir(cwd)
for item in list:
    if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
        group = group + SConscript(os.path.join(item, 'SConscript'))

Return('group')
